package io.zim.modules.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 商铺实体
 * @author zzh
 * @email 862583291@qq.com
 * @date 2019-1-15 18:51:40
 */
@TableName("nideshop_shop")
@Data
public class ShopVo implements Serializable{
  private static final long serialVersionUID = 1L;
  //主键
  @TableId(type = IdType.AUTO)
  private Long id;
  //部门id数据权限
  private Long deptId;
  //店铺拥有者id
  private Long userId;
  //推荐人
  private Long referrer;
  //商铺名称
  private String shopname;
  //区域地址
  private String area;
  //详细地址
  private String addr;
  //图片
  private String listPicUrl;
  //图片
  private String picUrl;
  //描述
  private String simpleDsc;
  //商铺描述富文本
  private String shopDesc;
  //状态  0：禁用   1：正常
  private Integer status;
  //创建时间
  private Date createTime;
  //到期时间
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date expirationTime;
}
